package com.example.shopping2.a_c_fragment.home.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.shopping2.R
import com.example.shopping2.a_c_fragment.home.entity.HomeMenuEntity

class HomeMenuAdapter(list:ArrayList<HomeMenuEntity>):BaseQuickAdapter<HomeMenuEntity,BaseViewHolder>(R.layout.homemenu,list) {
    override fun convert(holder: BaseViewHolder, item: HomeMenuEntity) {
        holder.setText(R.id.menu_tex,item.title)
        Glide.with(context).load(item.url).into(holder.getView(R.id.menu_img))

    }

}